PLUGIN_DIR=`pkg-config --variable=libdir geany`/geany

all: pyflakes.o
	gcc pyflakes.o -o geanypyflakes.so -shared `pkg-config --libs geany`

pyflakes.o: pyflakes.c
	gcc -Wall -c pyflakes.c -fPIC `pkg-config --cflags geany` 

install:
	cp geanypyflakes.so ${PLUGIN_DIR} --verbose

clean:
	rm geanypyflakes.so pyflakes.o

